package com.iss.springdemo1.aop;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class TargetClassProxy extends TargetClass {



     @Autowired
     private    HelloStrategy helloStrategy;

     @Override
     public  void  sayHello(){
         helloStrategy.start();
         super.sayHello();
         helloStrategy.end();
     }




}
